package  {	/**	 * @author pbalogh	 */	public class GrammarEntry 	{		public var _mynodename : String;		public var _replacements : Array;		public function GrammarEntry( nn : String, ...rest )		{			_mynodename = nn;						if( rest.length == 0  )			{				_replacements = new Array();			}			else			{				_replacements = rest[ 0 ];			}		}				public function addReplacement( r : Replacement ) : void		{			_replacements.push( r );			_replacements.sortOn( "_weight", Array.DESCENDING );		}	}}